import React from 'react';
import { Route } from 'react-router-dom';

import ErrorBoundaryRoutes from 'app/shared/error/error-boundary-routes';

import ActivityPlan from './activity-plan';
import ActivityPlanDetail from './activity-plan-detail';
import ActivityPlanUpdate from './activity-plan-update';
import ActivityPlanDeleteDialog from './activity-plan-delete-dialog';

const ActivityPlanRoutes = () => (
  <ErrorBoundaryRoutes>
    <Route index element={<ActivityPlan />} />
    <Route path="new" element={<ActivityPlanUpdate />} />
    <Route path=":id">
      <Route index element={<ActivityPlanDetail />} />
      <Route path="edit" element={<ActivityPlanUpdate />} />
      <Route path="delete" element={<ActivityPlanDeleteDialog />} />
    </Route>
  </ErrorBoundaryRoutes>
);

export default ActivityPlanRoutes;
